package com.code.springboot3.model.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UserUpdateInfoDto {
    @NotNull
    private int id;
    @NotEmpty
    private String username;
    @NotEmpty(message = "nickname不能为空，也不能为空格")
    private String nickname;
    @Email(message = "Email邮箱格式有误")
    private String email;
}
